import { reqAddressInfo ,reqOrderInfo } from "@/api";
const state = {
    userAddress: [],
    orderInfo:{},
};

//***************************测试订单页统一登陆测试账号 13700000000 111111
const actions = {
    async getUserAddress({ commit ,state}) {
        let res = await reqAddressInfo();
        if (res.code == 200) {
            state.userAddress = res.data;
        }
        else { }
    },

    //获取商品订单信息
    async getOrderInfo({ commit, state}) {
        let res = await reqOrderInfo();
        if (res.code == 200) {
            state.orderInfo = res.data;
        }
        else { }
    }
};
const mutations = {};

export default {
    state,
    actions,
    mutations
}